projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b55659
)
Don't echo empty string in file-name-with-extension
author
Colin Woodbury
<colin@fosskers.ca>
Sun, 22 Aug 2021 14:27:12 +0000
(16:27 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 22 Aug 2021 14:27:12 +0000
(16:27 +0200)
* lisp/files.el (file-name-with-extension): Avoid echoing a filename
string known to be empty (bug#50149).
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index f0baa4fac6dd292d65d2bfaf14e89066e552dc5c..ba362827ee7875990996b49e1b5ac7473cab2d53 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-5033,7
+5033,7
@@
FILENAME has the format of a directory.
See also `file-name-sans-extension'."
(let ((extn (string-trim-left extension "[.]")))
(cond ((string-empty-p filename)
- (error "Empty filename
: %s" filename
))
+ (error "Empty filename
"
))
((string-empty-p extn)
(error "Malformed extension: %s" extension))
((directory-name-p filename)